x86_emulate: Fix the segment-load function
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 16 Jun 2008 10:24:17 +0000 (11:24 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 16 Jun 2008 10:24:17 +0000 (11:24 +0100)
commit516863bfc19c65a52bcb8b47cad4332a74e5c1f3
tree9a7059fa5ea0254b2bf4b94820dde7613c889f3c
parent7ea5efa1368151f096094ea18df6b710216e3afa
x86_emulate: Fix the segment-load function

Fix the non-conforming type check and uses the consistent method to
fetch the cpl value as function get_cpl().

Also make sure vm86 mode is properly handled when determining whether
in real mode or protected mode -- in various respects vm86 mode can
act like both.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c